package com.zwr.sheller.shop.service;

import com.zwr.sheller.core.common.WQQBusinessException;
import com.zwr.sheller.core.pojo.NavigationBar;
import org.omg.CORBA.NamedValue;

import java.util.List;
import java.util.Map;

/**
 * @Author: 18032
 * @Date: 14:24 2022/1/10
 */
public interface NavigationBarService {

    /**
     * 点击下拉列表出现所有分类
     * @return
     */
    List<Map<String,Object>> selectAllItemName();

    /**
     * 添加店铺导航栏
     * @param navigationBar
     * @return
     */
    Integer addBar(NavigationBar navigationBar) throws WQQBusinessException;

    /**
     * 查询所有bar
     * @return
     */
    List<NavigationBar> selectAllBars();

    /**
     * 修改bar
     * @param navigationBar
     * @return
     */
    Integer updateBar(NavigationBar navigationBar) throws WQQBusinessException;

    /**
     * 删除导航栏
     * @param barId
     * @return
     */
    Integer deleteBar(Long barId) throws WQQBusinessException;

}
